package com.yisoo.rs.rsfile.feign;


import com.yisoo.rs.common.utils.R;
import com.yisoo.rs.common.vo.MovieJsonVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("yisoo-rsmovie")
public interface MoiveFeignService {

    @PostMapping("rsmovie/movies/quick_import")
    R quickImport(@RequestParam String appName, @RequestBody List<MovieJsonVo> dataList);


    @RequestMapping("rsmovie/movies/test")
    R test();
}
